///usage: root -l run_over_masses.C
///usage: root -l 'run_over_masses.C(30.)',  tanb=30
///usage: root -l 'run_over_masses.C(30.,"/your/path/to/out.mhmax_7.root")',  tanb=30, /your/path/to/ to file out.mhmax_7.root, path must be ended by '/'


#include "XSCalculator.C"

double masses[] = {90,100,120,150,180,200};


void run_over_masses(double tanb_=20.,TString path_="./")
{

double _totxsect=0;
for(unsigned int i=0;i<sizeof(masses)/sizeof(double);i++) _totxsect+= XSCalculator(masses[i],tanb_,path_);

cout<<"\n\n"<<"Total XS, pb = "<<_totxsect<<"\n";

return;
}

